package br.Entidade;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.MalformedURLException;

import android.content.Context;
import br.facebook.android.AsyncFacebookRunner.RequestListener;
import br.facebook.android.FacebookError;

public class MyRequestListener implements RequestListener{
	private Context myctx =null;
    private DisciplinaToFacebook myparent=null;	

	public MyRequestListener(Context ctx, DisciplinaToFacebook disciplinaToFacebook) {
		myctx = ctx;
		myparent = disciplinaToFacebook;
	}

	@Override
	public void onComplete(String response, Object state) {
		myparent.deslogarFace(myctx);
	}

	@Override
	public void onIOException(IOException e, Object state) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onFileNotFoundException(FileNotFoundException e, Object state) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onMalformedURLException(MalformedURLException e, Object state) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onFacebookError(FacebookError e, Object state) {
		// TODO Auto-generated method stub
		
	}

}
